<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 100px;
            background-color: #f00;
            /*display: inline-block;*/
           display: inline;
        }
        div:first-child{
            background-color: pink;
            margin-right: -5px;/*消除两个元素间的空白距离*/
            margin-left: -8px;
        }
        span{
            width: 300px;
            height: 200px;
            background-color: rgb(68, 168, 68);
            /*display: block;*/
            display: inline-block;
            margin-left: -5px;
            /*display: none;*/
        }
    </style>
</head>
<body>
    <div>div1</div>
    <div>div2</div>
    <span>span</span>
</body>
</html>